<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateStationTable extends Migration
{
    /**
     * Run the migrations.
     * 岗位表
     * @return void
     */
    public function up()
    {
        Schema::create('station', function (Blueprint $table) {
            $table->increments('id');
	        $table->string('name',20)->comment('岗位名称');
	        $table->integer('standard_hour')->comment('标准工时')->nullable();
	        $table->integer('standard_day')->comment('每月工作天数')->nullable();
	        $table->decimal('hour_salary',5,2)->comment('岗位时薪')->nullable();
	        $table->text('comment')->comment('岗位描述')->nullable();
	        $table->tinyInteger('status')->default(0)->comment('状态：0未发布，1已发布')->nullable();
	        $table->integer('company_id')->comment('所属公司id')->nullable();
	        $table->integer('is_store')->comment('门店部门1;非门店部门2')->default(1);
	        $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('station');
    }
}
